package com.slwish.xty.adapter;

import android.support.annotation.Nullable;
import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.slwish.xty.R;
import com.slwish.xty.entity.PoiInfoI;

import java.util.List;

/**
 * 模块说明：
 *
 * @author 陈浩
 * @date 2017/12/8
 */
public class SignAdjustAdapter extends BaseQuickAdapter<PoiInfoI, BaseViewHolder> {


    public SignAdjustAdapter(@Nullable List<PoiInfoI> data) {
        super(R.layout.item_sign_adjust_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, PoiInfoI item) {
        helper.setText(R.id.tv_title, item.name).setText(R.id.tv_content, item.address);
        helper.getView(R.id.tv_check).setVisibility(item.isCheck() ? View.VISIBLE : View.GONE);

    }

}
